package com.xing.service;

import com.xing.core.BaseService;
import com.xing.dto.ViewHistoryDTO;
import com.xing.entity.ViewHistoryEntity;
import com.xing.utils.PageData;

import java.util.List;

/**
 * @version 1.0
 * @Author Xing
 * @Date 2024/4/27 16:53
 */
public interface ViewHistryService extends BaseService<ViewHistoryEntity> {
    PageData<ViewHistoryDTO> GetViewHistory(Integer page, Integer limit);

    void DeleteViewHistory(Long id);

    /**
     * 添加或者修改浏览记录
     * @param roomId
     * @param userId
     */
    void updateViewHistory(Long roomId, Long userId);
}
